header{
    width: 100%;
    position: fixed;
    background-color: #ffc107;
    z-index: 1;
    .search{
        height: 50px;
        line-height: 50px;
        i{
            left: 8px;
        }
        .search-box{
            width: 170px;
            height: 35px;
            border-radius: 17px;
            text-indent: 25px;
            outline: none;
            border: none;
        }
    }
    .navigation{
        height: 40px;
        line-height: 40px;
        .act{
            color: white;
            font-size: 25px;
        }
    }
}

main{
    width: 100%;
    .head{
        margin: 0 15px;
        border-radius: 10px;
        nav .link {
            height: 60px;
            /* 垂直居中 */
            line-height: 60px;
            position: relative;
        }
        nav .link:hover {
            animation: scale .5s;
        }
        /* 缩放的动画 */
        @keyframes scale {
            0% {
                transform: scale(1)
            }
        
            50% {
                transform: scale(1.2)
            }
        
            100% {
                transform: scale(1)
            }
        }
        nav .link::after {
            content: '';
            /* 子元素绝对定位 */
            position: absolute;
            width: 0;
            height: 3px;
            background-color: #fff;
            bottom: 10px;
            left: 50%;
        }
        
        /* 点击时高亮效果 */
        nav .active::after {
            transition: all .5s;
            content: '';
            /* 子元素绝对定位 */
            position: absolute;
            width: 100%;
            height: 3px;
            background-color: #ff8200;
            bottom: 10px;
            left: 0;
        }
        /* active */
        nav .active {
            color: black;
            font-weight: bold;
            font-size: 20px;
        }
    }
}

main{
    .author{
        margin: 0 20px;
        li{
            padding: 15px;
            .imge{
                width: 110px;
                height: 120px;
            }
            .book{
                align-items: flex-end;
                img{
                    width: 40px;
                    height: 40px;
                    border-radius: 50%;
                }
            }
        }
    }
}